home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 1.7 KB | 70 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _PSTOBJ_
- #define _PSTOBJ_
-
- #ifndef _REFCTOBJ_
- #include "RefCtObj.idl"
- #endif
-
- //==============================================================================
- // Theory of Operation
- //==============================================================================
-
- /*
- This file defines class ODPersistentObject. This class is the common base
- class for all OpenDoc classes whose objects require persistent storage.
- */
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODPersistentObject;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODStorageUnit;
-
- //==============================================================================
- // ODPersistentObject
- //==============================================================================
-
- interface ODPersistentObject : ODRefCntObject
- {
- void InitPersistentObject(in ODStorageUnit storageUnit);
-
- void InitPersistentObjectFromStorage(in ODStorageUnit storageUnit);
-
- void ReleaseAll();
-
- void Externalize();
-
- ODStorageUnit GetStorageUnit();
-
- ODID GetID();
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- somInit,
- somUninit;
-
- releaseorder:
- InitPersistentObject,
- InitPersistentObjectFromStorage,
- ReleaseAll,
- Externalize,
- GetStorageUnit,
- GetID;
-
-
- };
- #endif
- };
-
- #endif //# _PSTOBJ_
-
-